package org.mtmi.ui.layouts;

import org.eclipse.swt.graphics.GC;
import org.mtmi.ui.scenes.Scene;

/**
 * Data used to layout.
 *
 */
public class LayoutData
{
	public GC gc;
	public int lx, ly, lw,lh; //top left corner and size of layouted area
	
	public LayoutData( GC _gc, int _lx, int _ly, int _lw, int _lh ) {
		gc = _gc;
		lx = _lx; ly = _ly;
		lw = _lw; lh = _lh;
	}
	
	/** build a layout data working on whole scene */
	public LayoutData( Scene s ) {
		gc = s.getGC();
		lx=ly=0;
		lw = s.getSize().x;
		lh = s.getSize().y;
	}
}
